//
//  BMUserTable.m
//  BicycleMap
//
//  Created by vedon on 5/15/16.
//  Copyright © 2016 Qianqian. All rights reserved.
//

#import "BMUserTable.h"
#import "BMUserInfo.h"

@implementation BMUserTable

#pragma mark - CTPersistanceTableProtocol
- (NSString *)databaseName
{
    //数据库名字
    return @"BMUser";
}

- (NSString *)tableName
{
    //数据表的名字
    return @"BMUserTable";
}

- (NSDictionary *)columnInfo
{
    return @{
             @"identifier":@"INTEGER PRIMARY KEY AUTOINCREMENT",
             @"avObjectId":@"TEXT",
             @"username":@"TEXT",
             @"mobile":@"TEXT",
             @"location":@"TEXT",
             @"gender":@"INTEGER",
             @"avatarUrl":@"TEXT",
             
             };
}

/*
 @property (nonatomic,strong) NSString *identifier;
 @property (nonatomic,strong) NSString *avObjectId;
 
 @property (nonatomic,strong) NSString *username;
 @property (nonatomic,strong) NSString *mobile;
 @property (nonatomic,strong) NSString *location;
 @property (nonatomic,assign) BMGender gender;
 @property (nonatomic,strong) NSString *avatarUrl;
 */

- (Class)recordClass
{
    return [BMUserInfo class];
}

- (NSString *)primaryKeyName
{
    return @"identifier";
}
@end
